import 'package:bpb/pages/add/add_controller.dart';
import 'package:bpb/pages/add/add_page.dart';
import 'package:bpb/pages/all/all_controller.dart';
import 'package:bpb/pages/all/all_page.dart';
import 'package:bpb/pages/blood_category/blood_category_page.dart';
import 'package:bpb/pages/history/history_controller.dart';
import 'package:bpb/pages/history/history_page.dart';
import 'package:bpb/pages/home/home_controller.dart';
import 'package:bpb/pages/home/home_page.dart';
import 'package:bpb/pages/setting/setting_controller.dart';
import 'package:bpb/pages/setting/setting_page.dart';
import 'package:bpb/pages/splash/splash_controller.dart';
import 'package:bpb/pages/splash/splash_page.dart';
import 'package:get/get.dart';

class AppPage {

  static const String ROUTER_SPLASH="/";
  static const String ROUTER_HOME="/home";
  static const String ROUTER_ADD="/add";
  static const String ROUTER_HISTRY="/histry";
  static const String ROUTER_ALL="/all";
  static const String ROUTER_SETTING="/setting";
  static const String ROUTER_CATEGORY="/blood_category";

  static final routes = <GetPage>[

    GetPage(name: ROUTER_SPLASH, page: () => SplashPage(),binding: BindingsBuilder((){
      Get.lazyPut(()=>SplashController());
    })),

    GetPage(name: ROUTER_HOME, page: () => HomePage(),binding: BindingsBuilder((){
      Get.lazyPut(()=>HomeController());
    })),

    GetPage(name: ROUTER_ADD, page: () => AddPage(),binding: BindingsBuilder((){
      Get.lazyPut(()=>AddController());
    })),

    GetPage(name: ROUTER_HISTRY, page: () => HistoryPage(),binding: BindingsBuilder((){
      Get.lazyPut(()=>HistoryController());
    })),

    GetPage(name: ROUTER_ALL, page: () => AllPage(),binding: BindingsBuilder((){
      Get.lazyPut(()=>AllController());
    })),

    GetPage(name: ROUTER_SETTING, page: () => SettingPage(),binding: BindingsBuilder((){
      Get.lazyPut(()=>SettingController());
    })),

    GetPage(name: ROUTER_CATEGORY, page: () => BloodCategoryPage()),


    // GetPage(name: ROUTER_SPLASH, page: () => SplashView(),binding: HomeBinding()),
    // GetPage(name: ROUTER_SPLASH, page: () => HomePage(),binding: HomeBinding()),
    // GetPage(name: ROUTER_DETAIL, page: () => DetailPage(),binding: DetailBinding()),

  ];

}
